﻿/*
 	PureMVC UnifiedLoader Utility
 	Copyright (c) 2008 neil manuell
  	Your reuse is governed by the Creative Commons Attribution 3.0 License
 */
 package org.puremvc.as3.multicore.utilities.unifiedloader.patterns.deconstructors
{
	
	import flash.display.Bitmap;
	
	import mx.modules.IModuleInfo;
	
	import org.puremvc.as3.multicore.utilities.unifiedloader.interfaces.IDeconstruct;
	
	/**
	* ...
	* @author DefaultUser (Tools -> Custom Arguments...)
	*/
	public class  ModuleDeconstructor implements IDeconstruct
	{
		private var mModule:IModuleInfo;
		
		public function ModuleDeconstructor(module:IModuleInfo):void
		{
			mModule = module;
		}
		
		public function deconstruct():void
		{
			mModule.unload();
			mModule = null;
		}
		
	}
	
}